home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / dev / amos / AMOS0398.lzh / AMOSLIST / 000090_amos-request@svcs1.digex.net_Mon Mar 9 09:04:26 1998.msg < prev    next >
Text File  |  1998-04-01  |  2KB  |  54 lines

  1. >From amos-request@svcs1.digex.net  Mon Mar  9 09:04:26 1998
  2. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  3.     by pony-1.mail.digex.net (8.8.8/8.8.8) with ESMTP id JAA03823
  4.     for <mcox@access.digex.net>; Mon, 9 Mar 1998 09:04:26 -0500 (EST)
  5. Received: (from daemon@localhost)
  6.     by svcs1.digex.net (8.8.5/8.8.5) id HAA15220
  7.     for amos-out; Mon, 9 Mar 1998 07:01:36 -0500 (EST)
  8. Received: from pony-1.mail.digex.net (pony-1.mail.digex.net [204.91.241.5])
  9.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id HAA15217
  10.     for <amos-list@svcs1.digex.net>; Mon, 9 Mar 1998 07:01:31 -0500 (EST)
  11. Received: from relay.technocom.net (relay.technocom.net [194.6.96.11])
  12.     by pony-1.mail.digex.net (8.8.8/8.8.8) with ESMTP id HAA05422
  13.     for <amos-list@access.digex.net>; Mon, 9 Mar 1998 07:01:29 -0500 (EST)
  14. Received: from mailgate.bacg.com ([195.172.67.137])
  15.     by relay.technocom.net (8.8.5/8.8.5) with SMTP id NAA21486
  16.     for <amos-list@access.digex.net>; Mon, 9 Mar 1998 13:05:20 GMT
  17. Message-Id: <TFSJNJTC@bacg.com>>
  18. From: "Wayne O'Donnell" <wo'donnell@bacg.com>
  19. Date: Mon, 9 Mar 1998 12:01:31 +0000
  20. To: amos-list@access.digex.net, l.a.atkins@uclan.ac.uk
  21. Subject: Re: help me please...
  22. MIME-version: 1.0
  23. Content-Type: text/plain; charset=ISO-8859-1
  24. X-Mailer: TFS Gateway /310000000/310102093/310102123/310460310/
  25. Content-Transfer-Encoding: 8bit
  26. X-MIME-Autoconverted: from quoted-printable to 8bit by svcs1.digex.net id HAA15218
  27. Status: O
  28. X-Status: 
  29.  
  30. >> Ok how will do to make amos to understand that i want to threat this
  31. >> as a number instead of an ascii value?
  32. >Isnt this ASC ? or is this some other language thats bouncing round
  33. >my head!
  34.  
  35. >a=asc("5") sets a to 5 ????
  36.  
  37. This is AMOS but does the opposite of what you are thinking.
  38. It would set 'a' to the ASCII value of the string "5".
  39.  
  40. What you want to use is VAL I think (although I have forgotten what you were 
  41. originally trying to do now!).
  42.  
  43. But, remembering bits, you were PEEKing a value from memory and trying to do 
  44. some maths on the result...
  45.  
  46. so a bit of your code is a=PEEK(start(16)) which returns the ASCII value of 
  47. "5", you need to convert the ASCII value to a string using CHR$, then 
  48. convert the string into a numeric...
  49.  
  50. a=(VAL(CHR$(PEEK(Start(16)))
  51.  
  52.  
  53. Wayne.
  54.